package com.szms.mobile.common;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class LocalDatetimeConverter implements ITypeConverter<String, LocalDateTime> {

    @Override
    public LocalDateTime convert(String s) {
        if(s==null || s.length()==0){
            return null;
        }
        return LocalDateTime.parse(s,DateTimeFormatter.ISO_DATE_TIME);
    }
}
